
import request from '@/utils/request';

export function queryAfterSalesOrderList(data) {
  return request(`/new-wms/salesAfter/getUnpackAfterSaleList`, {
    method: 'post',
    data
  });
}

// 确认收货
export function confirmReceipt(data) {
  return request(`/new-wms/salesAfter/confirmReceipt`, {
    method: 'post',
    data
  });
}

// 同意退款（退货退款、已发货仅退款、未发货仅退款）
export function agreeWithRefund(data) {
  return request(`/new-oms-ec/afterSale/agreeWithRefund`, {
    method: 'post',
    data
  });
}

// 获取扫描设置config
export function getAfterSalesScanConfig() {
  return request(`/new-common/afterSalesScan/config/get`);
}
// 扫描设置config
export function setAfterSalesScanConfig(data) {
  return request(`/new-common/afterSalesScan/config/save`, {
    method: 'post',
    data
  });
}

//获取快麦唯一码打印数据
export async function getKuaiMaiPrint(params) {
	return request(`/new-wms/kuaimai/getKuaiMaiCodePrintList`, {
		method: "post",
		data: params,
	});
}

// 确认收货换货
export function confirmReceive(data) {
  return request(`/new-oms-ec/afterSale/confirmReceive`, {
    method: 'post',
    data
  });
}


